<?php 
require_once("../include/conn.php");
if(!empty($_REQUEST["webname"])){
$webname=$_REQUEST["webname"];
}
if(!empty($_REQUEST["weburl"])){
$weburl=$_REQUEST["weburl"];
}	
if(!empty($_REQUEST["tel"])){
$tel=$_REQUEST["tel"];
}
if(!empty($_REQUEST["post"])){
$post=$_REQUEST["post"];
}	
if(!empty($_REQUEST["email"])){
$email=$_REQUEST["email"];
}
if(!empty($_REQUEST["address"])){
$address=$_REQUEST["address"];
}	
if(!empty($_REQUEST["webmaster"])){
$webmaster=$_REQUEST["webmaster"];
}		
//if($_REQUEST["action"] == "update")
//{	

//if(!empty($_REQUEST["id"]))
//{

//$id=$_REQUEST["id"];
	
$sql_update="UPDATE `$tb_wz` SET `tel` = '$tel',`post` = '$post',`email` = '$email',`weburl` = '$weburl',`webmaster` = '$webmaster',`address` = '$address',`webname` = '$webname' WHERE `id` = '1'";
$cn_update = mysql_db_query($db_name,$sql_update);






//echo $nname;	
?>
<script language="JavaScript" type="text/JavaScript">
alert("操作已成功!");
</script>

<?	

 
echo "<script language='javascript'>";

echo "self.location="."'"."Admin_SiteConfig.php'";
echo "</script>";	  

//}


//}
/* echo $webname."<br>";
echo $weburl."<br>";
echo $webmaster."<br>";
echo $post."<br>";
echo $address."<br>";
echo $tel."<br>";
echo $email."<br>"; */
//else{


?>
<!-- <meta http-equiv="refresh" content="0;URL=admin_index.php">
 --><?php// }?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
